

import Base from './base.js'


export default class extends Base {
  async indexAction() {
    const NewsService: any = this.service('NewsModel')
    let firstPageData = await Promise.all([NewsService.getNewsListFirst(), NewsService.getCatList()])
    let firstListData = firstPageData[0]
    let catListData = firstPageData[1]
    this.assign('firstListData', firstListData.data)
    this.assign('catListData', catListData.data)
    return this.display();
  }
}
